#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Project ：turbo 
@File    ：urls.py
@Author  ：赵加响
@Date    ：2023/4/6 15:17 
@Desc    ：
"""
from django.urls import include, path
from rest_framework.routers import DefaultRouter

from apps.rbac.views import RoleViewSet, RoleMenuAuthorize, RoleTree, RoleAssignUser, GetMenuStructureTree, \
    MenuSensitiveFieldAuthorize, MenuSensitiveFieldBatchAuthorize

rbac_router = DefaultRouter()
rbac_router.register('role', RoleViewSet, basename='Role List')

rbac_urlpatterns = [
    path('', include(rbac_router.urls)),
    path('role_menu_authorize/', RoleMenuAuthorize.as_view()),
    path('role_tree/', RoleTree.as_view()),
    path('role_assign_user/', RoleAssignUser.as_view()),
    path('get_menu_structure_tree/', GetMenuStructureTree.as_view()),
    path('menu_sensitive_field_authorize/', MenuSensitiveFieldAuthorize.as_view()),
    path('menu_sensitive_field_batch_authorize/', MenuSensitiveFieldBatchAuthorize.as_view()),
]
